import axios from '~/axios'

/**
 * 列表查询
 * @param {*} paramIo 
 */
export function api_banner_list(paramIo) {
    return axios({
        url: '/official/backend/banner/list',
        method: 'post',
        data: paramIo
    })
}


/**
 * 新增
 * @param {*} paramIo 
 */
export function api_banner_add(paramIo) {
    return axios({
        url: '/official/backend/banner/add',
        method: 'post',
        data: paramIo
    })
}

/**
 * 修改
 * @param {*} paramIo 
 */
export function api_banner_update(id,paramIo) {
    paramIo.id = id
    return axios({
        url: '/official/backend/banner/update',
        method: 'post',
        data: paramIo
    })
}

/**
 * 删除
 * @param {*} paramIo 
 */
export function api_banner_delete(id) {
    return axios({
        url: '/official/backend/banner/delete/'+id,
        method: 'post'
    })
}